package karaoke.controller;


import java.util.Map;

import karaoke.excepcion.DAOExcepcion;
import karaoke.negocio.GestionComprobante;
import karaoke.negocio.GestionSala;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;



@Controller
@RequestMapping("/comprobante")
public class ComprobanteController {

	@RequestMapping(method = RequestMethod.GET)
    public String getComprobatePage(Map model) {
		GestionSala gestion= new GestionSala();
		try {
			model.put("listaSalas", gestion.buscarPorLocal(3));
			
		} catch (DAOExcepcion e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
    	return "procesos/comprobante_pago";
    	
    	
    	
	}
	
	 
	
}
